|
|
|
|
|
|
|
Figure 17.43.
Using the Menu Editor to define Help menu
items. |
|
|
|
|
|
|
|
|
If you used the Application Wizard, it has set up the two main Help items. The wizard, however, uses the API call to the help engine rather than the Common Dialog control. When you've defined the menu items, add the code in Listing 17.6 to the application. |
|
|
|
|
|
|
|
|
LISTING 17.6. HELPEX2.TXTADDING CODE TO THE HELP MENU ITEM ROUTINES. |
|
|
|
 |
|
|
|
|
1: Private Sub mnuHelpContents_Click()
2: dlgHelp.HelpCommand = HelpFinder
3: dlgHelp.ShowHelp
4: End Sub
5:
6: Private Sub mnuHelpSearchForHelpOn_Click()
7: dlgHelp.HelpCommand = cdlHelpIndex
8: dlgHelp.ShowHelp
9: End Sub |
|
|
|
|
|
|
|
|
You'll see that the code calls the different functions of the help system simply by using the different commands available. Try running the application again to see how these functions work. |
|
|
|
|
|
|
|
|
You've seen several different concepts today. First, you've seen that the creation process for a professional Windows help system is really quite easy if you use the Help Workshop. Designing and selecting what you want in the help system is the hard part of the job, however. You may have figured out that the design of the help system should be |
|
|
|
|
|